//1.12 单位换算

#include <stdio.h>

int main()
{
    float cm;
    scanf("%f", &cm);
    printf("%.2f\n", cm/2.54);
    printf("%.2f\n", cm/2.54/12.0);
    return 0;
}
